package cn.edu.hit.ht.serviceImpl;

import cn.edu.hit.ht.dao.ProjectlistMapper;
import cn.edu.hit.ht.pojo.Projectlist;
import cn.edu.hit.ht.pojo.ProjectlistExample;
import cn.edu.hit.ht.service.IProjectListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectListService implements IProjectListService {
    @Autowired
    ProjectlistMapper projectlistMapper;

    @Override
    public List<Projectlist> selectAllProjectlist() {
        ProjectlistExample example = new ProjectlistExample();
        ProjectlistExample.Criteria criteria = example.createCriteria();

        List<Projectlist> projectlist =   projectlistMapper.selectByExample(example);
        return projectlist;
    }
}
